package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 登录日志信息对象 sys_login_info
 *
 * @author yfkj
 * @date 2021-10-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysLoginInfo extends com.ruoyi.common.core.web.domain.BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 登录日志信息主键 */
    @TableField(exist = true)
    @ApiModelProperty(value =  "${comment}")
    private Long loginInfoId;
    /** 用户账号 */
    @com.ruoyi.common.core.annotation.Excel(name = "用户账号")
    @TableField(exist = true)
    @ApiModelProperty(value =  "用户账号")
    private String userName;
    /** 登录IP地址 */
    @com.ruoyi.common.core.annotation.Excel(name = "登录IP地址")
    @TableField(exist = true)
    @ApiModelProperty(value =  "登录IP地址")
    private String ipaddr;
    /** 登录状态(0成功 1失败) */
    @com.ruoyi.common.core.annotation.Excel(name = "登录状态(0成功 1失败)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "登录状态(0成功 1失败)")
    private String status;
    /** 提示信息 */
    @com.ruoyi.common.core.annotation.Excel(name = "提示信息")
    @TableField(exist = true)
    @ApiModelProperty(value =  "提示信息")
    private String msg;
    /** 访问时间 */
    @com.ruoyi.common.core.annotation.Excel(name = "访问时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "访问时间")
    private Long accessTime;
    public static final String LOGIN_INFO_ID="login_info_id";
    public static final String USER_NAME="user_name";
    public static final String IPADDR="ipaddr";
    public static final String STATUS="status";
    public static final String MSG="msg";
    public static final String ACCESS_TIME="access_time";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("loginInfoId", getLoginInfoId())
                .append("userName", getUserName())
                .append("ipaddr", getIpaddr())
                .append("status", getStatus())
                .append("msg", getMsg())
                .append("accessTime", getAccessTime())
                .toString();
    }
}
